﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLL;
using Module;

namespace BLL
{
    public class BMenu
    {
        #region 字段

        private DMenu APP = new DMenu();//数据操作对象
        private static BMenu instance;

        #endregion

        #region 公共接口

        /// <summary>
        /// 取得
        /// </summary>
        /// <returns>BMenu对象</returns>
        public static BMenu getInstance()
        {
            if (instance == null)
            {
                instance = new BMenu();
            }
            return instance;
        }

        /// <summary>
        /// 获取所有可用的菜单
        /// </summary>
        /// <returns></returns>
        public List<MenuInfo> GetAllEnum()
        {
            return APP.GetAllEnum();
        }

        #endregion

    }
}
